module.exports = {
  publicPath: '',
  assetsDir: 'static',
  outputDir: 'dist',
  productionSourceMap: false,
  css: {
    sourceMap: true
  },
  pages: {
    index: {
      title: '导航',
      entry: 'src/pages/index/main.js',
      template: 'public/index.html',
      filename: 'index.html'
    },
    chat: {
      title: '聊天Demo',
      entry: 'src/pages/chat/main.js',
      template: 'public/index.html',
      filename: 'chat.html'
    },
    music: {
      title: '音乐',
      entry: 'src/pages/music/main.js',
      template: 'public/index.html',
      filename: 'music.html'
    },
    audio: {
      title: '音乐',
      entry: 'src/pages/audio/main.js',
      template: 'public/index.html',
      filename: 'audio.html'
    },
    demo: {
      title: '示例',
      entry: 'src/pages/demo/main.js',
      template: 'public/index.html',
      filename: 'demo.html'
    },
    webRtc: {
      title: 'webRtc',
      entry: 'src/pages/webRtc/main.js',
      template: 'public/index.html',
      filename: 'webRtc.html'
    }
  },
  devServer: {
    proxy: {
      '': {
        target: 'http://localhost:3000',
        ws: true
      },
      '/assets': {
        target: 'http://localhost:3000',
        ws: true
      },
      '/socket.io': {
        target: 'http://localhost:3000',
        ws: true
      }
    }
  }
}
